package com.alexjavi.eneagrama.personal;
import com.actionbar.MiBaseActivity;
import com.witejavi.eneagrama.R;

import android.os.Bundle;
import android.view.MenuItem;

public class MecanismosDeDefensa extends MiBaseActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		activarActionBar(true);
//		int tipoCategoria = getIntent().getExtras().getInt("categoria");
//		int numero = getIntent().getExtras().getInt("numero");
//		LinearLayout l;
//		switch(numero){
//		case 1:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos1);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 2:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos2);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 3:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos3);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 4:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos4);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 5:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos5);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 6:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos6);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 7:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos7);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 8:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos8);
//			l.setVisibility(View.VISIBLE);
//			break;
//		case 9:
//			l = (LinearLayout) findViewById(R.id.LinearLayoutMecanismos9);
//			l.setVisibility(View.VISIBLE);
//			break;
//		}
	}

	@Override
	protected int getLayoutResource() {
		return R.layout.mecanismos_defensa;
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			finish();
			return true;
		}

		return super.onOptionsItemSelected(item);
	}

}

